package com.polaris.live.adapter.chatPrice

import com.polaris.live.common.adapter.BaseBindingAdapter
import com.polaris.live.common.adapter.VBViewHolder
import com.polaris.live.databinding.AdapterAnchorTodayCallBinding
import com.polaris.live.resp.back_resp.RatingIndicatorVo
/**
 * TodayCallAdapter
 *
 * @author Created by 半仙 on 2024/1/12/012 9:47
 */
class TodayCallAdapter : BaseBindingAdapter<AdapterAnchorTodayCallBinding, RatingIndicatorVo>() {
    override fun convert(
        holder: VBViewHolder<AdapterAnchorTodayCallBinding>,
        item: RatingIndicatorVo,
    ) {
        holder.vb.apply {
            item.let {
                anchorItemName.text = it.name
                anchorItemCurrent.text = it.current
                anchorItemNext.text = it.next
            }
        }
    }
}